package day3_homework;

import java.util.Calendar;
import java.util.Date;

//计算当前时间距“世界末日”已经过去了多少天（2012-12-21）
public class _4 {
    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();
//        calendar.clear();
        long m = calendar.getTimeInMillis();
        calendar.set(2012,12,30);
        long millis = calendar.getTimeInMillis();
        System.out.println((m-millis)/1000/60/60/24);
    }
}
